package com.elf.flutter_elf

import android.graphics.PixelFormat
import android.os.Bundle

import io.flutter.app.FlutterActivity
import io.flutter.plugins.GeneratedPluginRegistrant
import android.view.WindowManager
import io.flutter.plugins.webviewflutter.WebViewFlutterPlugin
//import com.jinxian.flutter_tencentplayer.FlutterTencentplayerPlugin

class MainActivity: FlutterActivity() {
  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    GeneratedPluginRegistrant.registerWith(this)
    window.setFormat(PixelFormat.TRANSLUCENT)
    window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE or WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN)
    WebViewFlutterPlugin.registerWith(registrarFor("plugins.flutter.io/webview"))
//    FlutterTencentplayerPlugin.registerWith(registrarFor("flutter_tencentplayer"))
  }
}
